import { Tag } from 'ant-design-vue';
import type { TableColumn } from '@/components/core/dynamic-table';

export type TableListItem = API.UserListPageResultItem;
export type TableColumnItem = TableColumn<TableListItem>;

export const baseColumns: TableColumnItem[] = [
  {
    title: '用户ID',
    align: 'center',
    dataIndex: 'USER_ID',
    hideInTable: true,
    hideInSearch: true,
  },
  {
    title: '用户姓名',
    dataIndex: 'NAME',
    hideInSearch: false,
    align: 'center',
  },
  {
    title: '工号/编号',
    align: 'center',
    dataIndex: 'USER_NO',
  },
  {
    title: '登录名',
    align: 'center',
    hideInSearch: true,
    dataIndex: 'USER_ACCOUNT',
  },
  {
    title: '所在部门',
    dataIndex: 'DEPT_NAME',
    hideInSearch: true,
    align: 'center',
  },
];
